﻿using LuShanTea.Service.Entities;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuShanTea.Service.ModelConfig
{
    public class CartConfig : EntityTypeConfiguration<Cart>
    {
        public CartConfig()
        {
            this.ToTable("T_Carts");
            HasRequired(c => c.User).WithMany().HasForeignKey(c => c.UserId);
        }
    }
}
